<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>企业信息管理系统 - 注册</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="企业,信息,管理">
<meta http-equiv="description" content="企业信息管理系统 - 注册窗口">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>

<body bgcolor="#52BDFE">
<f:view>
	<table height="100%" width="100%">
		<tr>
			<td align="center">

			<table width="572" height="307" background="images/login.jpg">
				<tr>
					<td width="60%"></td>
					<td><h:form>
						<table width="200" border="0">
							<tr>
								<td colspan="2">
								<div id="status">注册新用户</div>
								</td>
							<tr>
								<td>*用户名</td>
								<td><h:inputText value="#{registerAction.username}"
									size="10" required="true"/></td>
							</tr>
							<tr>
								<td>*密码</td>
								<td><h:inputSecret value="#{registerAction.password1}"
									size="10" required="true"/></td>
							</tr>
							<tr>
								<td>*确认密码</td>
								<td><h:inputSecret value="#{registerAction.password2}"
									size="10" required="true"/></td>
							</tr>
							<tr>
								<td>Email</td>
								<td><h:inputText value="#{registerAction.email}" size="10" /></td>
							</tr>
							<tr>
								<td colspan="2"><a href="login.faces">返回登录页</a> <h:commandButton
									value="提交注册" action="#{registerAction.register}" /></td>
							</tr>
						</table>
						<h:outputText value="#{registerAction.errMessage}"/>
					</h:form></td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</f:view>
</body>
</html>
